
package Entidades;
import java.io.Serializable;
import java.util.*;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;


@Entity
@Table(name="Cafeteria")
@PrimaryKeyJoinColumn(name="idArea")
public class Cafeteria extends Area implements Serializable{
	private static final long serialVersionUID=1L;

	@OneToOne(fetch=FetchType.LAZY)
	@JoinColumn(nullable=false, name="idListaC")
	private ListaConsumo listaConsumo;
	
	@OneToOne(fetch=FetchType.LAZY)
	@JoinColumn(nullable=false, name="idListaC")
	private Jefe encCaf;

}
